#! /bin/sh

#启动方法
start(){

      nohup ./ServiceManager >/dev/null 2>&1 &
        echo $! > run.pid
}

#关闭方法
stop(){
	PID=$(cat run.pid)
	kill -s 2 $PID
	echo "stop pid " $PID
}



case "$1" in  
start)  
  start  
  ;;  
stop)  
  stop  
  ;;  
reload|restart)  
  stop  
  start  
  ;;  
*)  
  echo $"Usage: $0 {start|stop}"  
  exit 1  
esac  


